import request from '@/utils/request'

export const login = (data) => request({
  method: 'post',
  url: '/sys/login',
  data
})

export const getInfo = (token) => request({
  url: '/sys/profile',
  method: 'post'
})

export function logout() {
}

export const getAvatar = id => request({
  url: `/sys/user/${id}`
})
